﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Teacher:Person
    {
        private string Title;
        private int Wageno;

        public string title
        {
            get { return this.Title; }
            set { this.Title = value; }
        }
        public int wageno
        {
            get { return this.Wageno; }
            set { this.Wageno = value; }
        }
        public void dy()
        {
            this.ID = 1;
            this.name = "张三";
            this.sex = "男";
            this.cardid = 1234456646;
            this.tel = 12213144;
            this.title = "专业课老师";
            this.wageno = 113;
            Console.WriteLine("编号：{0}，姓名：{1}，性别：{2}，身份证：{3}，联系方式：{4}，职称：{5}，工资号：{6}", this.ID, this.name, this.sex, this.cardid, this.tel, this.title, this.wageno);

        }
    }
}
